#ifndef __USER_ADC_H__
#define __USER_ADC_H__


#ifdef	__cplusplus
extern "C" {	/* allow C++ to use these headers */
#endif	/* __cplusplus */

#include "ingsoc.h"

#define AVE_NUM 8
#define INCLUDE_EXTREMUM 0

#define ADC_CHANNEL_BAT     ADC_CH_4

#define ADC_IO_INDEX_BAT     11
#define IO_VBAT_DE_EN        31
void setup_adc(void);

uint16_t adc_read(SADC_channelId channel);

#ifdef __cplusplus
} /* allow C++ to use these headers */
#endif	/* __cplusplus */

#endif
